-- GENERATED SPELL FOR [Reef Shark] --


function spell0_12123(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_12123', 677, 1)
end

function Sorts_12123(pUnit, Event)
local choix_sorts_12123 = math.random(0, 0)
if choix_sorts_12123 == 0 then
pUnit:RegisterEvent('spell0_12123', 1, 1)
end
end

function mob12123_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12123', math.random(1500, 3000), 1)
end

function mob12123_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12123_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12123_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12123, 1, 'mob12123_Action')
RegisterUnitEvent(12123, 2, 'mob12123_Leave')
RegisterUnitEvent(12123, 3, 'mob12123_Kill')
RegisterUnitEvent(12123, 4, 'mob12123_Die')
